#include "main.h"
int main(){
    PQueue head = Init_Queue();
    if(NULL==head){
        printf("创建失败");
        return -1;
    }
    printf("头结点创建成功\n");
    TYPE data;
    printf("请输入数据：");
    while(1==scanf("%d",&data))
    {   
        if(data>0)
        {
            IN_Queue(head,data);
            display(head);
        }
        else
            OUT_Queue(head,&data);
            display(head);
    }
 
    return 0;
}